package com.zg.common.core.dao.apis.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zg.common.core.dao.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>Description: </p>
 *
 * @author zhanfeng.liang
 * @since 2025/6/25 9:32
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("api_service")
public class ApiService extends BaseEntity {

    /**
     * 服务名称
     */
    private String serviceName;

    /**
     * 服务编号
     */
    private String serviceCode;

    /**
     * 服务编号
     */
    private Long projectId;

    /**
     * 父ID（0为顶级分类）
     */
    private Long parentId;

    /**
     * IP地址
     */
    private String addr;

    /**
     * 端口
     */
    private Integer port;

    /**
     * 备注
     */
    private String intro;

    @TableField(exist = false)
    private String projectName;
}
